package com.world.business.role.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.world.common.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 角色
 * </p>
 *
 * @author 邓驴
 * @since 2023-05-16
 */
@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "Role对象", description = "角色")
public class Role extends BaseEntity {

    @ApiModelProperty("ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("角色名称")
    private String roleName;

    @ApiModelProperty("状态(0正常，1停用)")
    private String status;

    @ApiModelProperty("显示顺序")
    @TableField(value = "`rank`")
    private Integer rank;

    @ApiModelProperty("备注")
    private String remark;

}
